from django.db import models

class Stu(models.Model):
    usn = models.CharField(max_length=100,null=False)
    paw = models.CharField(max_length=100,null=False)
    class Meta():
        db_table = 'stu'
    #方法重寫:
    def __str__(self):
        return u"Stu:%s" % self.usn

